Repository navigation
chore(register): seven findings from /code-review max - #331
Conversation
…widened Intake for the findings the max review verified and this branch does not fix. Nothing here changes code. New, tiered on evidence rather than on how alarming they read: - C-113 (T2) `coverage.py:62,99` collapse "no region declared" into the same return as "a named region that is not pinned". The second is supported and documented (africa_me_legacy); the first is ADR-003 inference by omission and silently no-ops both coverage gates. One branch fixes all six call sites. - C-114 (T3) the S7 stub reports XFAIL for a ValueError or FileNotFoundError raised by its own probe, and a rename of `resolve_latest` to the port's real method name XPASSes it into a hard red on a required check. - C-115 (T3) the credential warning names the key both deliveries authenticate with from `min()` over timestamps the same file calls invented. - C-116 (T2) `ACKNOWLEDGED_UNTIL` is bounded only by the expiry, so the 2027 move widened the escape to swallow 29 of the 30 lead days. - C-117 (T3) the seam drift detector projects three fields, so the pinned registry still declaring two retired keys dying 2026-11-17 is invisible. - C-118 (T2) the views-frames `<4` justification is unguarded prose, and the re-check it points at is scoped to the one directory the MAJOR did not change. - C-119 (T3) resolving C-84/C-110 left C-86 and Cluster N asserting a red build that is green. Widened rather than duplicated: C-107 gains the two stale *claims* found in `delivery/draws.py` as evidence that the unscanned corpus rots in two ways, not one. They are fixed on docs/draws-docstring-stale-sample-width, so they are recorded as evidence, not as an open defect. Not registered: every finding scoped only to the untracked tests/test_falsify_coverage_region_is_declared.py, which is in no commit. Its root cause is C-113. Counts 113 -> 120 total, 30 -> 37 open; verified 37 + 83 against the section bodies, not the header. test_register_integrity.py 12 passed — it caught a missing `---` fence on the first entry, which is what it is for. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
… fixed The max review's Phase 3 sweep landed after its hand-back. Of its six findings, three were fixed as code on docs/draws-docstring-stale-sample-width (the empty payload misdiagnosis and the ragged-input Raises hole). These are the rest. - C-120 (T3) ADR-013 is now the stale copy of §6. `:1126` carries an OPEN maintainer item — '§6 "region-pinned" production S_min: the term was never defined' — and the docstring quoted that undefined term as fact until 5d6262e deleted it. Deleting a term is not defining it, so the item stands. `:730` still scopes the gate to the FAO delivery and calls the sink leg unbuilt; `:1201` still says the four rules match draws.py exactly. - C-121 (T3) test_an_acknowledgement_cannot_outlive_the_expiry returns early on ACKNOWLEDGED_UNTIL is None and has never run its assertion, while the register credits it among four companion tests "verified by mutation". Its sibling got a derived probe precisely so C-102 could not apply; this one did not. - C-122 (T3) test_the_manager_asserts_both_axes reads unfao's manager by hardcoded path and never crafd's. Ninth in the #211 family, in a repo whose conftest declares PARTNER_PACKAGES to end exactly this. Fixed rather than registered: pyproject's pytest comment read "the suite runs on 9.x today; 8.x still works". Measured — the lock pins 8.4.2, `poetry check --lock` exits 0, the installed runtime is 8.4.2. 8.x is not the fallback, it is the only resolution, so the comment was backwards about which pytest the green suite was measured on. One line, below the register's signal threshold. Counts 120 -> 123 total, 37 -> 40 open; verified 40 + 83 against the section bodies. test_register_integrity caught an extra blank line after the fence, as it did the missing fence last time. 45 passed across register, lock and doc-accuracy guards. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
Second batch, and one correction to this PR's scopeThe max review's Phase 3 sweep landed after its hand-back with six more verified findings. Three became code on
Scope correction: this PR is no longer register-only. It now also fixes one line of C-120 is the one that needs a human. Counts 120 → 123 total, 37 → 40 open, verified against the section bodies. |
What
Register intake for the findings
/code-review maxverified ondocs/draws-docstring-stale-sample-width, minus the two that branch fixes. No code changes — this touchesreports/technical_risk_register.mdonly.coverage.py:62,99collapse "noregiondeclared" into the same return as "a named region that is not pinned" — the second is documented and supported, the first silently no-ops both coverage gatesmin()over timestamps the same file calls inventedACKNOWLEDGED_UNTILis bounded only by the expiry, so the 2027 key move widened the escape to swallow 29 of the 30 lead days<4.0.0justification is unguarded prose, and the re-check recipe it points at is scoped to the one directory the MAJOR did not changeTiering
Tier 2 is reserved here for the three with a stated trigger and a consequence that reaches a delivery or the release path: C-113 (a partner delivery whose curation gate did nothing), C-116 (a seam-outage tripwire silenceable in one green line), C-118 (wire bytes, with a verification that returns empty for the wrong reason). The rest are Tier 3 — they misinform a human who is acting, which is real but recoverable.
Nothing was given Tier 1. None of these corrupts data with no error signal: C-113's count-gate logs a warning before it skips.
Deduplicated rather than appended
C-107 was widened, not duplicated. The two stale claims in
delivery/draws.pyshare C-107's root — docstrings are outside the doc-accuracy corpus — but not its problem type: C-107 is about pointers to moved files, these were wrong about this package's own behaviour. They are recorded in C-107 as evidence that the unscanned corpus rots in two ways, and explicitly not as an open defect, since the sibling branch fixes them.C-114 is new rather than merged into C-108. Same family, opposite failure direction: C-108's broken gates read false green from a
FileNotFoundError; C-114 also reads false red from a rename. Cross-referenced both ways.Not registered
Every finding scoped only to
tests/test_falsify_coverage_region_is_declared.py— an untracked working-tree file in no commit. Registering defects in a file the repo does not contain would be tracking a risk that does not exist. Its root cause is registered instead, as C-113, where the measured mutations point: the stub's own prescription would have madeafrica_me_legacyunlaunchable.Also skipped as below the register's signal threshold: a missing CHANGELOG entry, and
README.md:64's two-majors-stale dependency table (a one-line docs fix, not a tracked risk).Verification
pytest tests/test_register_integrity.py— 12 passed. It caught a missing---fence on the first inserted entry; fixed and re-run.views-models ADR-021).🤖 Generated with Claude Code
https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9